package com.cmc6.bulletin.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.cmc6.bulletin.model.enums.BulletinStatusEnum;
import com.cmc6.common.model.entity.BaseEntityThree;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@TableName(value = "bulletin")
@Data
@ApiModel(description = "公告主表")
public class BulletinDO extends BaseEntityThree {

    @ApiModelProperty(value = "公告类型（字典值）")
    private Byte type;

    @ApiModelProperty(value = "公告内容（富文本）")
    private String content;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "发布时间")
    private Date sendTime;

    @ApiModelProperty(value = "公告状态")
    private BulletinStatusEnum status;

    @ApiModelProperty(value = "xxlJobId")
    private Long xxlJobId;

}
